using System;
using System.Collections.Generic;
using System.Text;
using Winista.Text.HtmlParser;
using Winista.Text.HtmlParser.Util;
namespace FutureOpen.Core.func.util
{
    class HtmlUtil
    {
        private static Parser parser = new Parser();

        public static string getPlainText(string html)
        {
            string text = "";
            parser.InputHTML = html;
            INodeIterator iter = parser.Elements();
            while (iter.HasMoreNodes())
            {
                INode n = iter.NextNode();
                text += n.ToPlainTextString();
            }
            return text;
        }
    }
}
